import request from '@/utils/request'

export function getUserList(params) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: params
  })
}
export function saveUser(username, password) {
  return request({
    url: '/system/user/add',
    method: 'put',
    params: {
      userName: username,
      password: password
    }
  })
}
export function editUser(id, password) {
  return request({
    url: '/system/user/' + id,
    method: 'post',
    params: {
      password: password
    }
  })
}
export function getUser(id) {
  return request({
    url: '/system/user/' + id,
    method: 'get',
    params: {}
  })
}
